ENT.Type = "anim"
ENT.Base = "base_gmodentity"

ENT.PrintName = ""
ENT.Author = ""
ENT.Contact	= ""
ENT.Purpose	= ""
ENT.Instructions = ""

// Set entity song

function ENT:SetEntitySong(Song)
	self.Entity.Song = Song
end

// Play

function ENT:PlayEntitySong()
	local Song = self:GetEntitySong()
	
	self.Entity:EmitSound(Sound(Song))
	
	self.Entity:SetNetworkedInt("Playing", 1)
end

// Get entity song

function ENT:GetEntitySong()
	return self.Entity.Song
end

// Stop

function ENT:StopEntitySong()
	local Song = self:GetEntitySong()
	
	self.Entity:StopSound(Song)
	
	self.Entity:SetNetworkedInt("Playing", 0)
end

// Set label

function ENT:SetEntityLabel(Text)
	local Label = ""
	
	if (Text != "") then
		Label = "\nLabel: "..Text
	end
	
	local Status = "(USE: Stop)"
	
	if (self.Entity:GetNetworkedInt("Playing") == 0) then
		Status = "(USE: Play)"
	end
	
	local Song = "\nSong: "..self:GetEntitySong()
	
	Text = "Radio "..Status..Song..Label
	
	self:SetOverlayText(Text)
end